#ifndef CMD_PHOTO
#define CMD_PHOTO

#include <string>
#include <iostream>
#include <cstdlib>
#include <list>
#include "../../sqlite3/sqlite3.h"
#include "../../persistence.h"
#include "../../domain.h"
#include "./photo.h"

using namespace std;

class cmd_photo : public Commando
{
        Photo * photo;
        Album * album;
        int cmd;
    public:
        cmd_photo();
        cmd_photo(Photo *);
        string query();

        void setPhoto(Photo *);
        Photo * getPhoto();

        void setAlbum(Album *);
        Album * getAlbum();

        void setCmd(int);
        static const int CHECKLIMITALBUM = 0;
        static const int CADASTRAR = 1;
        static const int EXCLUIR = 2;
        static const int CHECKEXCLUIR = 3;
        static const int PESQUISAR = 4;
        static const int CHECKPHOTO = 5;
        static const int CHECKALBUM = 6;
        static const int ADDPHOTOALBUM = 7;
};

class cmd_album : public Commando
{
        Album * album;
        int cmd;
    public:
        cmd_album();
        cmd_album(Album *);
        string query();

        void setAlbum(Album *);
        Album * getAlbum();

        void setCmd(int);
        static const int CHECKCADASTRAR = 0;
        static const int CADASTRAR = 1;
        static const int EXCLUIR = 2;
        static const int CHECKEXCLUIR = 3;
        static const int PESQUISAR = 4;
        static const int PESQFOTOSALBUM = 5;
        static const int CHECKALBUM = 6;

};

#endif // CMD_PHOTO
